﻿using NUnit.Framework;

namespace PriceCalculator.Tests
{
  [TestFixture]
  public class CalcPriceWithExpectedDiscountsMixedSeriesWithDifferentLengths
  {
    [Test]
    public void Test1()
    {
      var input = new[] { 1, 2, 1, 1, 1};
      var expected = 5 * 8.0 * 0.75 + 8;

      var result = Calculator.CalcPrice(input);

      Assert.That(result, Is.EqualTo(expected));
    }


  }
}
